<template>
	<view class="principalType">
		<!-- <view class="top">
			<image src="/static/img/index/48.png" mode="widthFix"></image>
			<view class="">
				主体类型一旦选择，入驻后无法修改，请选择符合要求的主体类型
			</view>
		</view> -->
		<view class="center">
			<view class="" @click="data.num = 1">
				<view class="left">
					<image src="/static/img/index/51.png" mode="widthFix"></image>
					<view class="">
						个人店
						<text>适合无营业执照</text>
					</view>
				</view>
				<image :src="data.num == 1?'/static/img/index/49.png':'/static/img/index/52.png'" mode="widthFix"></image>
			</view>
			<view class="" @click="data.num = 2">
				<view class="left">
					<image src="/static/img/index/50.png" mode="widthFix"></image>
					<view class="">
						机构
						<text>适合有营业执照和相关资质的机构</text>
					</view>
				</view>
				<image :src="data.num == 2?'/static/img/index/49.png':'/static/img/index/52.png'" mode="widthFix"></image>
			</view>
		</view>
		<view class="bot">
			<text @click="navTo('/pages/storeInformation/index?num='+data.num)">选择</text>
		</view>
	</view>
</template>

<script setup lang="ts">
import { reactive } from 'vue';
const data = reactive<{num:number}>({
	num:1
})
const navTo=(url:string)=>{
		uni.redirectTo({
			url
		})
	}
</script>

<style lang="scss" scoped>
.principalType{
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	background: #F4F6FA;
	>.top{
		display: flex;
		align-items: flex-start;
		padding: 16rpx 32rpx;
		background: #FFF7E8;
		image{
			width: 40rpx;
			margin-right: 16rpx;
		}
		view{
			font-size: 28rpx;
			color: #262626;
			line-height: 1.5;
		}
	}
	.center{
		flex: 1;
		padding: 0 36rpx;
		>view{
			padding: 68rpx 32rpx;
			border-radius: 24rpx;
			background: #fff;
			margin-top: 24rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.left{
				display: flex;
				align-items: center;
				>image{
					width: 64rpx;
					margin-right: 24rpx;
				
				}
				view{
					font-size: 36rpx;
					color: #262626;
					display: flex;
					flex-direction: column;
					text{
						color: #8C8C8C;
						font-size: 28rpx;
						margin-top: 10rpx;
					}
				}
			}
			>image{
				width: 36rpx;
			}
		}
	}
	>.bot{
		display: flex;
		padding: 12rpx 56rpx 100rpx 56rpx;
		background: #fff;
		text{
			width: 100%;
			line-height: 88rpx;
			border-radius: 88rpx;
			font-size: 32rpx;
			color: #fff;
			text-align: center;
			background: #6B64D3;
		}
	}
}
</style>